package com.fancy.recommendation.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 推荐结果表实体
 * 
 * @author fancy
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_recommendation")
public class Recommendation {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 推荐类型
     */
    @TableField("rec_type")
    private String recType;

    /**
     * 目标ID
     */
    @TableField("target_id")
    private Long targetId;

    /**
     * 目标类型
     */
    @TableField("target_type")
    private String targetType;

    /**
     * 推荐分数
     */
    @TableField("score")
    private BigDecimal score;

    /**
     * 推荐理由
     */
    @TableField("reason")
    private String reason;

    /**
     * 算法类型
     */
    @TableField("algorithm")
    private String algorithm;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 过期时间
     */
    @TableField("expire_time")
    private LocalDateTime expireTime;
}
